/*
 * c4_exercise8.cpp
 *
 *  Created on: Sep 1, 2013
 *      Author: cyper.yin
 */

#include <iostream>
using namespace std;

int main_c4e8(int argc, char **argv) {
	struct Pizza{
		char company[30];
		float diameter;
		float weight;
	};

	Pizza *p = new Pizza;

	cout << "Enter diameter:";
	cin >> p->diameter;
	cin.get();

	cout << "Enter company:";
	cin.getline(p->company, 30);

	cout <<"Enter weight:";
	cin >> p->weight;

	cout <<"Pizza{" << p->company <<"," << p->diameter <<", " << p->weight << "}" << endl;

	delete p;

	return 0;
}



